/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/13 8:56
 * @description:
 */
public class Circle extends Shape{
  double r;
  public Circle(double r){
    this.r=r;}
  @Override
  public double area() {
    return r*r*3.14;
  }

  @Override
  public String getName() {
    return "yuan";
  }

  @Override
  public void output() {
    System.out.println(getName()+"的面积是"+area());
  }
}
